package com.EthanYankang;

import java.net.Socket;

/**
 * @Author: Ethan Yankang
 * @Program: diy-tomcat
 * @Date: 2024-09-08 08:57
 **/
public class Request extends AbstructHttpServletRequest{
    private String method;
    private String URL;
    private String protocol;
    private Socket socket;

    public Request(String method, String URL, String protocol,Socket socket) {
        this.method = method;
        this.URL = URL;
        this.protocol = protocol;
        this.socket=socket;
    }

    @Override
    public String getMethod() {
        return this.method;
    }

    @Override
    public String getProtocol() {
       return this.protocol;
    }

    @Override
    public String getRequestURI() {
        return this.URL;
    }

    public Socket getSocket() {
        return socket;
    }
}
